//babel的使用
module.exports = {
  presets: [ //预设
    ['@babel/preset-env'], //解析js代码
    ['@babel/preset-react'] //解析jsx代码
  ],
  plugins: [
    ["@babel/plugin-proposal-decorators", { "legacy": true }],
    ["@babel/plugin-proposal-class-properties", { "loose" : true }],
    ["@babel/plugin-syntax-dynamic-import"]
  ]
}